package com.wantupai.mvp.framework.support.viewstate;

import android.os.Bundle;
import android.support.annotation.NonNull;

import com.wantupai.mvp.mvp.MvpView;


/**
 * @author ：zhangqing
 */
public interface RestorableViewState<V extends MvpView> extends ViewState<V>
{

    void onSaveInstanceState(@NonNull Bundle outState);//保存数据

    RestorableViewState<V> onRestoreInstanceState(Bundle inState);
}
